package com.xjj.datarources.base;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @name: xjj
 * @date: 2021/5/18 10:21
 */

@Data
@TableName("data_sources")
public class DataSources {


    @TableId
    private String id;

    @NotBlank
    private String name;

    @NotBlank
    private String url;

    @NotNull(message = "数据库端口号不能为空")
    private Integer port;

    @NotBlank
    private String dbname;

    @NotBlank
    private String username;

    @NotBlank
    private String password;

    @NotNull(message = "数据库类型不能为空")
    private String dataType;


    private String remark;



}
